package com.seqb.manage.subject.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.seqb.common.dto.CommDTO;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lilinshen
 * @title 科目表
 * @description 请填写相关描述
 * @date 2019-11-27
 */
@Data
@TableName("t_subject")
public class SubjectDO extends CommDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    //唯一编号
    private Long id;
    //科目名称
    private String name;
    //目标分数
    private Long targetScore;
    //考试时间
    private String examTime;
    //一级类别ID
    private Long firstTypeId;
    //一级类别名称
    private String firstTypeName;
    //二级类别ID
    private Long secondTypeId;
    //二级类别名称
    private String secondTypeName;
    //创建者编号
    @TableField(fill = FieldFill.INSERT)
    private Long createNumber;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createDate;
    //修改时间
    @TableField(fill = FieldFill.INSERT_UPDATE, update = "now()")
    private Date updateDate;
    //是否删除(0-否，1-是)
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private String isDelete;
    //版本号
    @TableField(fill = FieldFill.INSERT_UPDATE, update = "%s+1")
    private Long version;

}
